﻿<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <title>授权中...</title>
</head>
<body>
    <script>
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
        var s=GetQueryString("s");
        var value=localStorage.getItem("sq_openid");
        if(value){
           window.location.href="./allocation.html?state="+s;
        }else{
            location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdee54b086fd22d2e&redirect_uri=http%3a%2f%2fm.qudon.cn%2fpages%2fallocation.html&response_type=code&scope=snsapi_base&state="+s+"#wechat_redirect"
        }
       
    </script>
</body>
</html>